package com.bj58.mis.apm.server.kylin.model;

import com.bj58.mis.apm.server.kylin.util.JsonUtil;

import java.util.Date;
import java.util.Map;

public class Step {
    private String interruptCmd;
    private String id;
    private String name;
    private Integer sequence_id;
    private String exec_cmd;
    private String interrupt_cmd;
    private Long exec_start_time;
    private Long exec_end_time;
    private Integer exec_wait_time;
    private String step_status;
    private String cmd_type;
    private Map<String, Object> info;
    private Boolean run_async;

    private Date d_exec_start_time;
    private Date d_exec_end_time;
    private String s_info;
    private String job_id;

    public Step deal(){
        this.d_exec_start_time = new Date(this.exec_start_time);
        this.d_exec_end_time = new Date(this.exec_end_time);
        this.s_info = JsonUtil.toString(info);
        return this;
    }

    public String getInterruptCmd() {
        return interruptCmd;
    }

    public void setInterruptCmd(String interruptCmd) {
        this.interruptCmd = interruptCmd;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSequence_id() {
        return sequence_id;
    }

    public void setSequence_id(Integer sequence_id) {
        this.sequence_id = sequence_id;
    }

    public String getExec_cmd() {
        return exec_cmd;
    }

    public void setExec_cmd(String exec_cmd) {
        this.exec_cmd = exec_cmd;
    }

    public String getInterrupt_cmd() {
        return interrupt_cmd;
    }

    public void setInterrupt_cmd(String interrupt_cmd) {
        this.interrupt_cmd = interrupt_cmd;
    }

    public Long getExec_start_time() {
        return exec_start_time;
    }

    public void setExec_start_time(Long exec_start_time) {
        this.exec_start_time = exec_start_time;
    }

    public Long getExec_end_time() {
        return exec_end_time;
    }

    public void setExec_end_time(Long exec_end_time) {
        this.exec_end_time = exec_end_time;
    }

    public Integer getExec_wait_time() {
        return exec_wait_time;
    }

    public void setExec_wait_time(Integer exec_wait_time) {
        this.exec_wait_time = exec_wait_time;
    }

    public String getStep_status() {
        return step_status;
    }

    public void setStep_status(String step_status) {
        this.step_status = step_status;
    }

    public String getCmd_type() {
        return cmd_type;
    }

    public void setCmd_type(String cmd_type) {
        this.cmd_type = cmd_type;
    }

    public Map<String, Object> getInfo() {
        return info;
    }

    public void setInfo(Map<String, Object> info) {
        this.info = info;
    }

    public Boolean getRun_async() {
        return run_async;
    }

    public void setRun_async(Boolean run_async) {
        this.run_async = run_async;
    }

    public Date getD_exec_start_time() {
        return d_exec_start_time;
    }

    public void setD_exec_start_time(Date d_exec_start_time) {
        this.d_exec_start_time = d_exec_start_time;
    }

    public Date getD_exec_end_time() {
        return d_exec_end_time;
    }

    public void setD_exec_end_time(Date d_exec_end_time) {
        this.d_exec_end_time = d_exec_end_time;
    }

    public String getS_info() {
        return s_info;
    }

    public void setS_info(String s_info) {
        this.s_info = s_info;
    }

    public String getJob_id() {
        return job_id;
    }

    public void setJob_id(String job_id) {
        this.job_id = job_id;
    }
}
